package cn.com.git.example.common.auth;


/**
 * 鉴权 常量类
 * Created by shuzheng on 2017/2/18.
 */
public class AuthConstant {

    /**
     * cache key 缓存 key
     */
    //全局session id
    public static final String SERVER_SESSION_ID = "server-session-id";
    //局部session id
    public static final String CLIENT_SESSION_ID = "client-session-id";
    //全局code
    public static final String SERVER_CODE = "server-code";
    //客户端 session 超时时间 一小时
    public static final Long CLIENT_SESSION_TIMEOUT = 60 * 60 * 1000L;
    //测试用的 token
    public static AuthenticationTokenDTO testToken;

    static {
        testToken = new AuthenticationTokenDTO();
        AuthenticationTokenDTO.SysUser testSysUser = new AuthenticationTokenDTO.SysUser();
        testSysUser.setId(-1);
        testSysUser.setAccount("test1");
        testSysUser.setName("测试1号");
        testToken.setSysUser(testSysUser);
    }
}
